﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class DungVM_Search : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
   
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["connection"].ConnectionString);
        con.Open();
        try
        {
            VacancyMethord Vacancy = new VacancyMethord();
            SqlDataReader dr = Vacancy.VacancySearch(txtJob.Text);
            grvVacancy.DataSource = dr;
            grvVacancy.DataBind();
            

            
        }
        catch (Exception ex)
        {

            Console.Write(ex.Message);
        }
       
            
        
        con.Close();
        
    }
}